#pragma once
#include "vector3.h"
#include "quaternion.h"
#include "gl\glut.h"
#include "RigidBody.h"
#include "DrawTools.h"
#include "ColorDefines.h"

class HingeBar : public RigidBody
{
public:
	HingeBar(void);
	HingeBar(double length, double width, double m);
	~HingeBar(void);

	void AddTorque(vector3 force, double length);
	vector3 GetMomentum(vector3 p);

	void Update(double t, double dt);
	void Render();

	double length;
	double width;

	double maxAngle;
	double neutral;

	vector3 color;
};

